package com.EpidemicPrevention.controller;


import com.EpidemicPrevention.pojo.Studyroom;
import com.EpidemicPrevention.service.StudyroomServiceImpl;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/StudyroomController")
public class StudyroomController {
    @Autowired
    private StudyroomServiceImpl studyroomService;

    //    存储用户信息
//    @Param user
//    @return
    @GetMapping("/saveStudyroom")
    @ResponseBody
    @CrossOrigin
    public JSON saveStudyroom (Studyroom studyroom) {
        return  studyroomService.saveStudyroom (studyroom);



    }

}
